<h1>Listing reports</h1>

<table>
  <tr>
    <th>Title</th>
    <th>Pub date</th>
  </tr>

<% for report in @reports %>
  <tr>
    <td><%=h report.title %></td>
    <td><%=h report.pub_date %></td>
    <td><%= link_to 'Show', report %></td>
    <td><%= link_to 'Edit', edit_report_path(report) %></td>
    <td><%= link_to 'Destroy', report, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<%= link_to "export as excel",export_reports_url %>

<br />

<%= link_to 'New report', new_report_path %>
